#ifndef PACKROW_H
#define PACKROW_H

#include <QTreeWidgetItem>

#ifdef SLACKWARE
#include "../core/SlackList.h"
#endif
#ifdef APT
#include "../core/AptList.h"
#endif

class PackRow: public QTreeWidgetItem {
public:
  PackRow(Pkg package);
  ~PackRow();
  bool operator<(const QTreeWidgetItem &other) const;
private:
  void setImage(QString img);
  void setDate(QString date);
  void setSize(QString size);
  void setPackName(QString packname);
  void setInfos(QString infos);
  string TimeDiff(time_t file_tm, const char m);
};

#endif
